home *** CD-ROM | disk | FTP | other *** search
- #!/usr/local/bin/perl
-
- # The above line explains where your perl program is. You'll need to
- # change it to reflect the location of your program on your system.
- # If you don't know where it is, type "which perl" or "whereis perl"
- # at the command line and substitute the resulting path for the path
- # above.
-
- unshift (@INC, "/usr/local/etc/httpd/cgi-bin/Library");
-
- require "cgi-lib.pl";
- &ReadParse(*MYDATA);
-
- $customer_service_email = "selena\@eff.org";
- $mail_program = "mail";
- $get_info_who = "./register.temp";
-
- # Add a couple new variables for this script
-
- $warehouse_script = "warehouse.pl";
- $background= "/Images/Backgrounds/grey_stone.jpg";
- $ibm_button = "http://kragar.eff.org/~erict/Graphics/Scripts/Digicon/ibm.jpg";
- $apple_button = "http://kragar.eff.org/~erict/Graphics/Scripts/Digicon/apple.jpg";
- $software_button = "http://kragar.eff.org/~erict/Graphics/Scripts/Digicon/software.jpg";
- $workstations_button = "http://kragar.eff.org/~erict/Graphics/Scripts/Digicon/workstations.jpg";
- $peripherals_button = "http://kragar.eff.org/~erict/Graphics/Scripts/Digicon/peripherals.jpg";
-
- open (NOTE, ">$get_info_who") || die "Could not open the file";
-
- print NOTE "Someone has been perusing the Computer Outlet!\n\n";
- print NOTE " Name: $MYDATA{'name'}\n";
- print NOTE " Phone: $MYDATA{'phone'} \n";
- print NOTE " E-Mail: $MYDATA{'email'} \n";
- print NOTE " Referring Distributor: $MYDATA{'referrer'} \n";
-
- close (NOTE);
- system ("$mail_program -s Registration $customer_service_email < $get_info_who");
-
-
- print "Content-type: text/html \n\n";
- print <<" end_of_html";
- <HTML><HEAD><TITLE>Quotes Page</TITLE></HEAD>
- <BODY BACKGROUND="$background">
- <CENTER>
- <A HREF="$warehouse_script?oid=$MYDATA{'name'}&system=IBM">
- <IMG SRC="$ibm_button" BORDER=0></A>
- <A HREF="$warehouse_script?oid=$MYDATA{'name'}&system=APPLE">
- <IMG SRC="$apple_button" BORDER=0></A>
- <A HREF="$warehouse_script?oid=$MYDATA{'name'}&system=SOFTWARE">
- <IMG SRC="$software_button" BORDER=0></A>
- <A HREF="$warehouse_script?oid=$MYDATA{'name'}&system=WORKSTATIONS">
- <IMG SRC="$workstations_button" BORDER=0></A>
- <A HREF="$warehouse_script?oid=$MYDATA{'name'}&system=PERIPHERALS">
- <IMG SRC="$peripherals_button" BORDER=0></A>
- </BODY></HTML>
- end_of_html
- die;
-
-
-